import { SET_LIST } from '../mutation-type'
import { getListApi } from '../../api/msbd'
export default {
    namespaced: true,
    state: {
        list: []
    },
    mutations: {
        [SET_LIST](state, { data }) {
            state.list = data
        }
    },
    actions: {
        async acquireList({ commit }) {
            commit(SET_LIST, await getListApi())
        }
    },
    getters: {

    }
}